from django.contrib import admin

from blog.models import BlogCategory, Blog, BlogComment


class BlogCategoryAdmin(admin.ModelAdmin):
    list_display = ('name',)

class BlogAdmin(admin.ModelAdmin):
    list_display = ('title', 'category', 'author','content','pub_time')
# Register your models here.
class BlogCommentAdmin(admin.ModelAdmin):
    list_display = ('author', 'content', 'blog', 'pub_time')


admin.site.register(BlogCategory, BlogCategoryAdmin)
admin.site.register(Blog, BlogAdmin)
admin.site.register(BlogComment, BlogCommentAdmin)
